package com.woniuxy.dudugua.service.impl;

import com.woniuxy.dudugua.entity.ProductInfo;
import com.woniuxy.dudugua.mapper.ProductInfoMapper;
import com.woniuxy.dudugua.service.ProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductInfoServiceImpl implements ProductInfoService {
    @Autowired
    private ProductInfoMapper productInfoMapper;
    @Override
    public int insertProductInfo(ProductInfo productInfo) {
        int insert = productInfoMapper.insert(productInfo);
        return insert;
    }

    @Override
    public ProductInfo selectById(Integer id) {
        return productInfoMapper.selectByProductId(id);
    }
}
